public class Congress extends Approver {
    public Congress(String name) {
        super(name);
    }

    @Override
    public void processRequest(PurchaseRequest request) {
        if (request.getAmount() >= 50000) {
            System.out.println("开会讨论并审批了金额为 " + request.getAmount() + " 的采购单，编号：" + request.getNumber());
        } else {
            // 如果金额不在董事会审批范围内，可以抛出异常或记录错误
            System.out.println("错误：金额 " + request.getAmount() + " 不在开会会审批范围内。");
        }
    }
}
